#include "kit/user/User.hpp"

namespace KitUser
{
	User::User(SystemSocket::Connection * iConnection):
			_connection(iConnection)
	{

	}

	User::~User()
	{
		delete _connection;
	}

	void User::addFollower(std::string iFollowerId)
	{
		_followers.insert(iFollowerId);
	}

	void User::removeFollower(std::string iFollowerId)
	{
		_followers.erase(iFollowerId);
	}

	const std::vector<std::string> User::getFollowers() const
	{
		const std::vector<std::string> aCopy(_followers.begin(), _followers.end());
		return aCopy;
	}

}

